package com.gc.tpas.dao;

import com.fasterxml.jackson.databind.deser.impl.CreatorCandidate;
import com.gc.tpas.entity.QaSolution;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 * Created by Administrator on 2018/5/9 0009.
 */
@SuppressWarnings("JpaQlInspection")
public interface QaSolutionDao extends JpaRepository<QaSolution,Integer> {

    @Query("update qa_solution set ding=:ding where id = :id")
    @Modifying
    int updateDing(@Param("ding") int ding, @Param("id") int id);

    @Query("update qa_solution set cai=:cai where id = :id")
    @Modifying
    int updateCai(@Param("cai") int cai,@Param("id") int id);
}
